﻿using MessagePack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WWDemon.Model
{
    [MessagePackObject]
    public class GetOrderInfo
    {
        [Key(0)]
        public string OrderId { get; set; }

        [Key(1)]
        public string IpProt { get; set; }
    }


    [MessagePackObject]
    public class PCClientInfo
    {
        [Key(0)]
        public string Id { get; set; }
        [Key(1)]
        public string Name { get; set; }
        [Key(2)]
        public DateTime TestDateTime { get; set; }
    }

    [MessagePackObject]
    public class SendOrderInfoModel
    {
        [Key(0)]
        public int Testint { get; set; }
        [Key(1)]
        public long Testlong { get; set; }
        [Key(2)]
        public double Testdouble { get; set; }
        [Key(3)]
        public decimal Testdecimal { get; set; }
        [Key(4)]
        public DateTime TestDateTime { get; set; }
        [Key(5)]
        public string TestString { get; set; }

        [Key(6)]
        public List<TestData> TestData { get; set; }
    }

    [MessagePackObject]
    public class TestData
    {
        [Key(0)]
        public int Id { get; set; }

        [Key(1)]
        public string Name { get; set; }
    }
    [MessagePackObject]
    public class MessageInfo
    {
        [Key(0)]
        public string ErrorMes { get; set; }
        [Key(1)]
        public int ErrorCode { get; set; }
    }
}
